package com.haiyou.dc.spring.config;

import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;


@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, MybatisAutoConfiguration.class})
public class TestBean {

    public static void main(String[] args) {
        //启动WEB项目
        SpringApplication application = new SpringApplication(TestBean.class);
        ConfigurableApplicationContext context = application.run(args);
        Man bean = context.getBean(Man.class);

    }
}
